package com.cloudbroker.bcs.platform.ltb.bizapi.service.admin.vo;

import com.cloudbroker.bcs.common.validatioin.annotation.EnumValue;
import com.cloudbroker.bcs.common.validatioin.annotation.Length;
import com.cloudbroker.bcs.common.validatioin.annotation.NotBlank;
import com.cloudbroker.bcs.common.validatioin.annotation.Password;
import com.cloudbroker.bcs.platform.ltb.bizapi.constants.type.UserType;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.base.vo.BrokerVO;

/**
 * Created by tianrui on 2016/8/1.
 */
public class AdminBaseForm extends BrokerVO {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;

    @NotBlank
    @Password
    @Length(max = 50)
    protected String admin_password;

    @NotBlank
    @EnumValue(enumClass = UserType.class)
    protected String user_type;

    @NotBlank
    protected String sendercomp_id;
    @NotBlank
    protected String company_id;

    @NotBlank
    protected String user_name;

    public String getAdmin_password() {
        return admin_password;
    }

    public void setAdmin_password(String admin_password) {
        this.admin_password = admin_password;
    }

    public String getUser_type() {
        return user_type;
    }

    public void setUser_type(String user_type) {
        this.user_type = user_type;
    }

    @Override
    public String getSendercomp_id() {
        return sendercomp_id;
    }

    @Override
    public void setSendercomp_id(String sendercomp_id) {
        this.sendercomp_id = sendercomp_id;
    }

    @Override
    public String getCompany_id() {
        return company_id;
    }

    @Override
    public void setCompany_id(String company_id) {
        this.company_id = company_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }
}
